{% extends "base_generic.html" %}
{% block content %}
        <h1>Categorías</h1>
        <h2><a href="/admin/categorias//new/" class="add">Añadir categoria</a></h2>
        <table class="imgswithoutborders">
        {% for categoria in categorias %}
          <tr>
            <td>{{ categoria.plural }} <span style="color: #ccc">{{ categoria.menu }}</a></td>
            <td><a href="/{{ categoria.pluralSlug }}">Public</a></td>
            <td><a href="/admin/categorias/{{ categoria.key }}/edit/">Editar</a></td>
            <td><a href="/admin/categorias/{{ categoria.key }}/delete/" onclick="if(confirm('¿Do you really want to delete {{ categoria.title }}?')){return true;}else{return false;}">Borrar</a></td>
          </tr>
        {% endfor %}
        </table>

{% endblock %}
